import request from '@/utils/request'

// 查询订单续费列表
export function listOrderRenew(query) {
  return request({
    url: '/qipairoom/orderRenew/list',
    method: 'get',
    params: query
  })
}

// 查询订单续费详细
export function getOrderRenew(rorderId) {
  return request({
    url: '/qipairoom/orderRenew/' + rorderId,
    method: 'get'
  })
}

// 新增订单续费
export function addOrderRenew(data) {
  return request({
    url: '/qipairoom/orderRenew',
    method: 'post',
    data: data
  })
}

// 修改订单续费
export function updateOrderRenew(data) {
  return request({
    url: '/qipairoom/orderRenew',
    method: 'put',
    data: data
  })
}

// 删除订单续费
export function delOrderRenew(rorderId) {
  return request({
    url: '/qipairoom/orderRenew/' + rorderId,
    method: 'delete'
  })
}
